
using System;
using QdbUnit;
using QdbUnit.Extensions;
using Qdb.Ext;

namespace QdbUnit.Extensions
{
	public class QdbAssert
	{
		public static void PersistedCount(int expected, Type extent)
		{
			Assert.AreEqual(expected, Db().Query(extent).Count);
		}

		private static IExtObjectContainer Db()
		{
			return Fixture().Db();
		}

		private static IQdbFixture Fixture()
		{
			return QdbFixtureVariable.Fixture();
		}
	}
}
